home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
tutor
/
pro5
/
car.cpp
< prev
next >
Wrap
Text File
|
1990-07-20
|
368b
|
23 lines
// Chapter 7 - Program 5
#include "car.hpp"
void car::initialize(int in_wheels, float in_weight, int people)
{
passenger_load = people;
vehicle::initialize(in_wheels, in_weight);
}
int car::passengers(void)
{
return passenger_load;
}
// Result of execution
//
// (this file cannot be executed)